package com.dataconver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import java.util.TimeZone;

/**
 * Spring Boot主启动类
 * 定时同步SQLServer数据到MySQL的项目
 */
@SpringBootApplication
@EnableConfigurationProperties
public class DataConverApplication {
    
    public static void main(String[] args) {
        // 设置JVM默认时区为北京时间
        System.setProperty("user.timezone", "Asia/Shanghai");
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        
        SpringApplication.run(DataConverApplication.class, args);
    }
}
